{template 'header', $module}
<form method="post" action="sendmail.php"  id="pub-form">
<table class="data-form">
<tr>
<th width="90">发件人</th>
<td class="tr"><strong>{$_email}</strong></td>
</tr>
<tr>
<th width="90"><span class="cred">*</span> 收件人</th>
<td class="tr"><input type="text" name="email" id="email" value="{$email}" size="30" class="graybd-ipt easyui-validatebox" data-options="required:true,validType:'email',missingMessage:'请填写收件人邮箱'"/><span id="demail" class="cred"></span></td>
</tr>
<tr>
<th width="90"><span class="cred">*</span> 邮件标题</th>
<td class="tr"><input type="text" name="title" id="title" value="{$title}" size="50" class="graybd-ipt easyui-validatebox" data-options="required:true,validType:'length[5,50]',invalidMessage:'标题最少输入5个字符',missingMessage:'请填写标题'"/></td>
</tr>
<tr>
<th width="90"><span class="cred">*</span> 邮件正文</th>
	<td class="tr f_gray">
		{Post::kindEditor('content', $moduleid, $content, 'datatype="*5-99999" nullmsg="请填写新闻内容" errormsg="新闻内容最少5字"','675px')}
	</td>
</tr>
<tr>
<th width="90"><span class="cred">*</span> 验证码</th>
<td class="tr">{template 'captcha', 'chip'} <span id="dcaptcha" class="cred"></span></td>
</tr>
<tr>
<th width="90"> </th>
<td class="tr" height="30"><input type="submit" name="submit" value=" 发 送 " class="btn"/>&nbsp;&nbsp;<input type="button" value=" 预 览 " class="btn" onclick="mail_view();"/>&nbsp;&nbsp;<input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<form method="post" action="sendmail.php" name="pmail" id="pmail" target="_blank">
<input type="hidden" name="preview" value="1"/> 
<input type="hidden" name="title" id="ptitle"/> 
<input type="hidden" name="content" id="pcontent"/> 
</form>
<script type="text/javascript">
	seajs.use(['$', 'easyui'], function ($) {
		$('#pub-form').on('submit', function(){
			return $('#pub-form').form('validate');
		});
	})
</script>
{template 'footer', $module}